package com.jove.girl.controller;

import com.jove.girl.properties.GirlProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/hello")
public class HelloController {

    @Autowired
    private GirlProperties mGirlProperties;
//
//    @RequestMapping(value = "/girl", method = RequestMethod.GET)
//    public String say() {
//        return mGirlProperties.getCupSize();
//    }

    @GetMapping(value = "/girl")
    public String outId(@RequestParam(value = "id", required = false, defaultValue = "0") Integer id,
                        @RequestParam(value = "cupSize") String cupSize,
                        @RequestParam(value = "age") Integer age) {



        return "id:" + id;
    }
}
